package com.example.mobile2021606129ly0507;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

public class ShowDataActivity extends AppCompatActivity {

    private TextView txMainName;
    private TextView txMainPass;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_show_data);
        initView();
        Intent intent= getIntent();
        txMainName.setText(intent.getStringExtra("userName"));
        Bundle bundle = intent.getExtras();
        txMainPass.setText(bundle.getString("passWord"));


    }

    private void initView() {
        txMainName = (TextView) findViewById(R.id.tx_main_name);
        txMainPass = (TextView) findViewById(R.id.tx_main_pass);
    }
}